package com.wdb007.venus.svc.facade.constant;

public class BizConstants {
	//======登录方式========//
	/**
	 * 接口请求 0 app,默认APP端
	 */
	public static final Byte CHANNEL_APP = 0 ;
	/**
	 * 接口请求 1 wx
	 */
	public static final Byte CHANNEL_WX = 1 ;
	
	/**
	 * 书格状态  0---请求打开
	 */
	public static final Integer GRID_LOCK_STATUS_0 = 0 ;
	/**
	 * 书格状态  1---已打开
	 */
	public static final Integer GRID_LOCK_STATUS_1 = 1 ;
	/**
	 * 书格状态  2---打开失败
	 */
	public static final Integer GRID_LOCK_STATUS_2 = 2 ;
	/**
	 * 书格状态  3---已关闭
	 */
	public static final Integer GRID_LOCK_STATUS_3 = 3 ;
	/**
	 * 书格状态 4---开始盘点
	 */
	public static final Integer GRID_LOCK_STATUS_4 = 4 ;
	/**
	 * 书格状态 5---盘点成功
	 */
	public static final Integer GRID_LOCK_STATUS_5 = 5 ;
	
	/**书格计费标准，超过5分钟收费*/
	public static final Integer BILLING_BASE = 180;
	
	public static final Integer FIVE_MINUTES_MILLS = 5 * 60 * 1000 ;
	
	/**图书实体表，图书状态 0---上架*/
	public static final Integer BOOK_BORROW_STATUS_0 = 0;
	
	/**图书实体表，图书状态 1---下架*/
	public static final Integer BOOK_BORROW_STATUS_1 = 1;
	
	/**图书实体表，图书状态 2---借阅*/
	public static final Integer BOOK_BORROW_STATUS_2 = 2;
	/**图书实体表，图书状态 3---已被购买*/
	public static final Integer BOOK_BORROW_STATUS_3 = 3;
	/**图书实体表，图书状态 4---图书作废*/
	public static final Integer BOOK_BORROW_STATUS_4 = 4;
	
	/**图书错还 0 --否*/
	public static final Integer BOOK_WRONG_BACK_0 = 0;
	
	/**图书错还 1 --是*/
	public static final Integer BOOK_WRONG_BACK_1 = 1;
	
	/**订单类型 10--图书订单*/
	public static final Integer ORDER_TYPE_10 = 10 ;
	
	/**订单状态 10--始状态*/
	public static final Integer ORDER_STATUS_10 = 10 ;
	
	/**订单状态 20--进行中*/
	public static final Integer ORDER_STATUS_20 = 20 ;
	
	/**订单状态 30--已完成*/
	public static final Integer ORDER_STATUS_30 = 30 ;
	
	/**借还流水表  交易状态 10 --初始状态*/
	public static final Integer ORDER_TRANS_STATUS_10 = 10;
	
	/**借还流水表  交易状态 20 --计费中*/
	public static final Integer ORDER_TRANS_STATUS_20 = 20;
	
	/**借还流水表  交易状态 21 --待支付*/
	public static final Integer ORDER_TRANS_STATUS_21 = 21;
	
	/**借还流水表  交易状态 22 --已支付*/
	public static final Integer ORDER_TRANS_STATUS_22 = 22;
	
	/**借还流水表  交易状态 23 --已支付*/
	public static final Integer ORDER_TRANS_STATUS_23 = 23;
	
	/**借还流水表  交易状态 30 --完成*/
	public static final Integer ORDER_TRANS_STATUS_30 = 30;
	/**借还流水表  交易状态 40 --扣费到70%完成*/
	public static final Integer ORDER_TRANS_STATUS_40 = 40;
	/**借还流水表  交易状态 50 --购买图书*/
	public static final Integer ORDER_TRANS_STATUS_50 = 50;
	/**借还流水表  交易状态 60 --图书作废*/
	public static final Integer ORDER_TRANS_STATUS_60 = 60;
	
	/**用户充值记录表 交易状态: trans_status  0---初始化*/
	public static final Integer USER_CHARGE_STATUS_0 = 0 ;
	/**用户充值记录表 交易状态: trans_status  1---进行中*/
	public static final Integer USER_CHARGE_STATUS_1 = 1 ;
	/**用户充值记录表 交易状态: trans_status  2---完成*/
	public static final Integer USER_CHARGE_STATUS_2 = 2 ;
	/**用户充值记录表 交易状态: trans_status  3---交易取消*/
	public static final Integer USER_CHARGE_STATUS_3 = 3 ;
	/**用户充值记录表 交易状态: trans_status  4---交易失败*/
	public static final Integer USER_CHARGE_STATUS_4 = 4 ;
	/**用户充值记录表 交易状态: trans_status  5---交易关闭*/
	public static final Integer USER_CHARGE_STATUS_5 = 5 ;
	
	/**用户充值记录表 交易状态: trans_status  6---退款成功*/
	public static final Integer USER_CHARGE_STATUS_6 = 6 ;
	
	/**用户充值记录表 交易状态: trans_status  7---退款失败*/
	public static final Integer USER_CHARGE_STATUS_7 = 7 ;
	
	/**账户现金变动记录表  充值类型  10 ---- 微信*/
	public static final Integer ACCOUNT_CASH_CHARGE_TYPE_10 =  10 ;
	/**账户现金变动记录表  充值类型  20 ---- 支付宝*/
	public static final Integer ACCOUNT_CASH_CHARGE_TYPE_20 =  20 ;
	/**账户现金变动记录表  充值类型  30 ---- 系统赠送*/
	public static final Integer ACCOUNT_CASH_CHARGE_TYPE_30 =  30 ;
	/**账户现金变动记录表  充值类型  40 ---- 书格扣款*/
	public static final Integer ACCOUNT_CASH_CHARGE_TYPE_40 =  40 ;
	/**账户现金变动记录表  充值类型  50 ---- 租书扣款*/
	public static final Integer ACCOUNT_CASH_CHARGE_TYPE_50 =  50 ;
	/**账户现金变动记录表  充值类型  51 ---- 购买月卡或者年卡扣费*/
	public static final Integer ACCOUNT_CASH_CHARGE_TYPE_51 =  51 ;
	/**账户现金变动记录表  充值类型  52 ---- 购买图书*/
	public static final Integer ACCOUNT_CASH_CHARGE_TYPE_52 =  52 ;
	/**账户现金变动记录表  充值类型  60 ---- 充值卷*/
	public static final Integer ACCOUNT_CASH_CHARGE_TYPE_60 =  60 ;
	/**账户现金变动记录表  充值类型  70 ---- VIP充值赠送*/
	public static final Integer ACCOUNT_CASH_CHARGE_TYPE_70 =  70 ;
	/**账户现金变动记录表  充值类型  80 ---- 邀请赠送*/
	public static final Integer ACCOUNT_CASH_CHARGE_TYPE_80 =  80 ;
	
	/**账户现金变动记录表  操作类型  10 ---- 充值*/
	public static final Integer ACCOUNT_CASH_OPER_TYPE_10 =  10 ;
	/**账户现金变动记录表  操作类型  20 ---- 扣款*/
	public static final Integer ACCOUNT_CASH_OPER_TYPE_20 =  20 ;
	/**账户现金变动记录表  操作类型  30 ---- 退款*/
	public static final Integer ACCOUNT_CASH_OPER_TYPE_30 =  30 ;
	/**短信验证状态： 0 ---- 未验证*/
	public static final Integer SMS_STATUS_0 = 0 ;
	/**短信验证状态： 1 ---- 已验证*/
	public static final Integer SMS_STATUS_1 = 1 ;
	/**短信验证状态： 2 ---- 失效*/
	public static final Integer SMS_STATUS_2 = 2 ;
	/**用户状态 0----正常*/
	public static final Integer USER_INFO_STATUS_0 = 0 ;
	/**用户状态 1----冻结*/
	public static final Integer USER_INFO_STATUS_1 = 1 ;
	
	/**现金账户 0----正常*/
	public static final Integer ACCOUNT_CASH_STATUS_10 = 10 ;
	/**现金账户 1----冻结*/
	public static final Integer ACCOUNT_CASH_STATUS_20 = 20 ;
	
	/**用户登陆表--日志类型 0---注册*/
	public static final Integer USER_ACCESS_LOG_TYPE_0 = 0 ;
	/**用户登陆表--日志类型 1---登陆*/
	public static final Integer USER_ACCESS_LOG_TYPE_1 = 1 ;
	/**用户登陆表--日志类型 2---退出登陆*/
	public static final Integer USER_ACCESS_LOG_TYPE_2 = 2 ;
	
	public static final Integer ACCOUNT_CREDIT_CHANGE_TYPE_10 = 10 ;
	/**用户充值记录表--充值渠道 0--支付宝 */
	public static final Integer CHARGE_LOG_CHANNEL_0 = 0;
	/**用户充值记录表--充值渠道 1--微信 */
	public static final Integer CHARGE_LOG_CHANNEL_1 = 1;
	/**用户类型  0-普通用户*/
	public static final Integer GRID_TRANS_USER_TYPE_0 = 0;
	/**用户类型 1-运维人员*/
	public static final Integer GRID_TRANS_USER_TYPE_1 = 1;
	/**更换图书信息表 0-上架*/
	public static final Integer BOOK_CHANGE_RELATION_0 = 0 ;
	/**更换图书信息表 1-下架*/
	public static final Integer BOOK_CHANGE_RELATION_1 = 1;
	/**用户充值记录表 0-押金充值*/
	public static final Integer USER_CHARGE_LOG_CHARGE_TYPE_0 = 0;
	/**用户充值记录表 1-余额充值*/
	public static final Integer USER_CHARGE_LOG_CHARGE_TYPE_1 = 1;
	
	/**用户扣费标志表 扣费标志 1-普通会员*/
	public static final Integer USER_COST_FLAG_FLAG_1 = 1;
	/**用户扣费标志表 扣费标志 2-会员*/
	public static final Integer USER_COST_FLAG_FLAG_2 = 2;
	
	/**用户扣费标志表  扣费顺序 1-普通会员*/
	public static final Integer USER_COST_FLAG_COSTORDER_1 = 1;
	/**用户扣费标志表 扣费顺序 2-会员*/
	public static final Integer USER_COST_FLAG_COSTORDER_2 = 2;
	
	/**用户扣费标志表 0-无效*/
	public static final Integer USER_COST_FLAG_VALIDFLAG_0 = 0;
	/**用户扣费标志表 1-有效*/
	public static final Integer USER_COST_FLAG_VALIDFLAG_1 = 1;
	
	/**VIP类型 0非VIP*/
	public static final Integer VIP_TYPE_0 = 0;//非VIP
	/**VIP类型 1月卡*/
	public static final Integer VIP_TYPE_1 = 1;//月卡
	/**VIP类型 2月卡*/
	public static final Integer VIP_TYPE_2 = 2;//年卡
	/**VIP类型 3月卡*/
	public static final Integer VIP_TYPE_3 = 3;//月卡加天数
	
	/**VIP charge type 在线充值*/
	public static final Integer VIP_CHARGE_TYPE_10 = 10;
	/**VIP charge type 活动赠送*/
	public static final Integer VIP_CHARGE_TYPE_20 = 20;
	/**VIP charge type 地推赠送*/
	public static final Integer VIP_CHARGE_TYPE_30 = 30;
	/**流程指令表 direct SEND--发送*/
	public static final String PROCESS_INSTRUCTION_DIRECT_SEND = "SEND";
	/**流程指令表 direct RECV--接收*/
	public static final String PROCESS_INSTRUCTION_DIRECT_RECV = "RECV";
	
	/**流程指令表 sender/recipient app_server--应用服务器*/
	public static final String PROCESS_INSTRUCTION_SUBJECT_APP_SERVER = "app_server";
	/**流程指令表  sender/recipient bookcase--书柜*/
	public static final String PROCESS_INSTRUCTION_SUBJECT_BOOKCASE = "bookcase";
	/**流程指令表  sender/recipient app--APP端*/
	public static final String PROCESS_INSTRUCTION_SUBJECT_APP = "app";
	/**流程指令表  sender/recipient wss_bookcase--书柜推送服务器*/
	public static final String PROCESS_INSTRUCTION_SUBJECT_WSS_BOOKCASE = "wss_bookcase";
	/**流程指令表  sender/recipient wss_app--APP推送服务器*/
	public static final String PROCESS_INSTRUCTION_SUBJECT_WSS_APP = "wss_app";
	
	// 小程序服务消息模板
	/**书籍借阅状态通知*/
	public static final String BOOK_BORROW_STATUS_NOTICE = "QTOz9ne2N22gRllwEbvG43DmKy7gyk4bwSOzo5IT7LE";
	public static final String BOOK_BORROW_STATUS_PAGE = "pages/index/index";
	
	/**充值到账通知*/
	public static final String RECHARGE_TO_ACCOUNT_NOTICE = "NHXoVIv2aVwG8-QcjsWXlaBLZKn024MYnnrIE339uSQ"; 
	public static final String RECHARGE_TO_ACCOUNT_PAGE = "pages/user_center/user_center";

	//TODO
	/**会员卡到账通知*/
	public static final String VIP_CARD_TO_ACCOUNT_NOTICE = "6CSENFw_E_q670tqVUuzqLEnErx1VOJ4e3asYOV6yWg";
	public static final String VIP_CARD_TO_ACCOUNT_PAGE = "pages/user_center/user_center";
	//TODO

	/**借阅费用达图书价格上限*/
	public static final String BORROW_FEE_OVER_PRICE_NOTICE = "";
	public static final String BORROW_FEE_OVER_PRICE_PAGE = "pages/borrow_list/borrow_list";
	//TODO

	/**图书借阅超额通知*/
	public static final String BORROW_BOOK_OVER_NOTICE = "PyW3lAsu7BjoM3IpdbeOWZz-LtrZkhPFpc-NmdkHDd8";
	public static final String BORROW_BOOK_OVER_PAGE = "pages/borrow_list/borrow_list";

	/**押金缴纳成功通知*/
	public static final String PAY_DEPOSIT_NOTICE = "kcVA5adqN0u27BsLtBenn2aSBpZjG_wZr-imDoMJRuY";
	public static final String PAY_DEPOSIT_PAGE = "pages/user_center/user_center";
	
	/***
	 * 新用户注册成功后推送
	 */
	public static final String MERCHANT_ACTIVITY_NOTICE = "HzV4DVfvahP5G_8r9ci3DXaEIAP0l8gApdEzG154iMk";
	public static final String MERCHANT_ACTIVITY_PAGE = "pages/user_center/user_center";
	
	//===========短信模板 START================//
	/**充值到账 - 系统赠送
	 尊敬的用户，您的账户已获得系统赠送的{money}元，请至您的余额查看！
	 * */
	public static final String RECHARGE_TO_ACCOUNT_MSG = "SMS_126360571";
	/***充值到账 - 实际支付
	 尊敬的用户，您的账户已成功充值${money}元，请至您的余额查看！
	 * */
	public static final String PAID_SUCCESS_TO_ACCOUNT_MSG = "SMS_126360574";

	/**用户成功购买会员卡后推送
	 * 
	 * */
	public static final String PAID_VIP_TO_ACCOUNT_MSG = "SMS_126460708"; 
	/**
	 * 系统赠送会员卡到账推送
	 */
	public static final String SYS_GIVE_VIP_TO_ACCOUNT_MSG = "SMS_126356186";
	
	/** 借阅费用已超过书籍价格的70%
	 * 尊敬的用户，您在“我的邦童书馆”所借图书《${bookName}》费用已经超过${price}元，我们将不在继续增加您的借阅费，您可保留或者归还所借图书。*/
	public static final String BORROW_FEE_OVER_PRICE_MSG = "SMS_126363671";
	
	/**图书借阅超额
	 * 尊敬的用户，您本次借阅书籍${borrowNum}本，其中${outNum}本书籍为超额借阅，将按照每天${price}元/本计算，具体信息请打开APP或者小程序内查看。
	 */
	public static final String BORROW_BOOK_OVER_MSG = "SMS_126351352";
	
	/**押金缴纳成功通知
	 * 尊敬的用户，您的账户成功支付${money}元押金，快来开启您的千本绘本之旅，更多借阅信息请打开APP或者小程序内查看。
	 */
	public static final String PAY_DEPOSIT_MSG = "SMS_126351330";
	/**会员到期提醒通知
	 * 您的${viptype}会员将于${days}天后到期，别忘了续费哦~
	 */
	public static final String VIP_EXPIRE_TIME_MSG = "SMS_126356578";
	
	/**押金退款到账通知
	 * 尊敬的用户，您申请的押金退款已成功到账，请您登陆支付账号查看，感谢您的支持。
	 */
	public static final String BACK_DEPOSIT_SUCCESS_MSG = "SMS_126356195";
	
	//===========短信模板 END================//

	/**书格报警类型：0-书格报警*/
	public static final Integer BS_ALARM_TYPE_0 = 0;
	/**书格报警类型：1-紫外线报警*/
	public static final Integer BS_ALARM_TYPE_1 = 1;
	/**书格报警类型：2-LED报警*/
	public static final Integer BS_ALARM_TYPE_2 = 2;
	/**书格报警类型：3-软件版本不匹配报警*/
	public static final Integer BS_ALARM_TYPE_3 = 3;
	/**书格报警类型：4-网络异常报警*/
	public static final Integer BS_ALARM_TYPE_4 = 4;
	/**书格报警类型：5-书柜存书报警*/
	public static final Integer BS_ALARM_TYPE_5 = 5;
	/**书格报警类型：6-书格存书报警*/
	public static final Integer BS_ALARM_TYPE_6 = 6;
	/**书格报警类型：7-用户借阅异常报警*/
	public static final Integer BS_ALARM_TYPE_7 = 7;
	/**书格报警类型：8-用户报修报警*/
	public static final Integer BS_ALARM_TYPE_8 = 8;
	
	/**书格报警状态：0-未处理*/
	public static final Integer BS_ALARM_STATUS_0 = 0;
	/**书格报警状态：1-已接受、待处理*/
	public static final Integer BS_ALARM_STATUS_1 = 1;
	/**书格报警状态：2-已处理*/
	public static final Integer BS_ALARM_STATUS_2 = 2;
	
	/**优惠券使用状态 TOOK-领取*/
	public static final Integer COUPON_EVENT_TOOK = 1;
	/**优惠券使用状态 USED-使用*/
	public static final Integer COUPON_EVENT_USED = 2;
	/**优惠券使用状态 EXPIRED-过期*/
	public static final Integer COUPON_EVENT_EXPIRED = 3;
	/**优惠券使用状态 LOCK-占用*/
	public static final Integer COUPON_EVENT_LOCK = 4;
}


